import Vue from 'vue';

import App from './App.vue';
import ElementUI, { Loading, MessageBox, Message, Notification } from 'element-ui';
import router from './router';
import store from './store';
import i18n from './lang'; // 国际化
import '@/assets/svg'; //  将svg 注册为全局
// import '@/utils/check-login';
import 'element-ui/lib/theme-chalk/index.css';
import '@/styles/base.less'; // global css
import '@/styles/element-ui/element-ui.less';
import VxeUIAll from 'vxe-pc-ui';
import 'vxe-pc-ui/lib/style.css';

import VxeUITable from 'vxe-table';
import 'vxe-table/lib/style.css';
import { aegis } from '@/utils/jmonitor';

// aegis.infoAll();

Vue.prototype.$loading = Loading.service;
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$prompt = MessageBox.prompt;
Vue.prototype.$notify = Notification;
Vue.prototype.$message = Message;
Vue.use(ElementUI);
Vue.use(VxeUIAll);
Vue.use(VxeUITable);

new Vue({
  router,
  store,
  i18n,
  render: (h) => h(App),
}).$mount('#app');
